package com.jcroke.PC32.transformer;

import java.util.Hashtable;
import java.util.LinkedHashMap;

import com.jcroke.PC32.basetransform.DefaultTransformer;
import com.jcroke.PC32.datum.Datum;
import com.jcroke.PC32.datum.dString;

/**
 * 
 * @author jcroke
 *
 */
public class Uppercase extends DefaultTransformer {

	private final String INPUT = "input1";
	private final String  UPPER_CASE_OUT = "uppercase_out";

	public void execute() {

		LinkedHashMap<String, Datum> inputs = getInput();
		String input = inputs.get(INPUT).toString();
		dString output = new dString(input.toUpperCase());

		Hashtable<String, Datum> outputs = new Hashtable<String, Datum>();

		outputs.put(UPPER_CASE_OUT, output);
		emit(outputs);
	}

}
